<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8" />
		<title></title>
		<script src="../node_modules/jquery/dist/jquery.min.js"></script>
		<script src="../node_modules/jquery/dist/jquery.js"></script>
		<link rel="stylesheet" type="text/css" href="../node_modules/bootstrap/dist/css/bootstrap.css" />
		<link rel="stylesheet" type="text/css" href="../node_modules/bootstrap/dist/css/bootstrap.min.css" />
	</head>
	<body>
		<div class="container">
			<div class="page-header">
				<h1><a href="../">我的音乐</a><small>
						<%= title %></small></h1>
			</div>
			<a class="btn btn-success" href="add">添加歌曲</a>
			<br>
			<table class="table text-center">
				<tr>
					<th>编号</th>
					<th>标题</th>
					<th>歌手</th>
					<th>音乐名称</th>
					<th>海报</th>
					<th>操作</th>
				</tr>
				<% list.forEach( item => { %>
				<tr>
					<td>
						<%= item.id %>
					</td>
					<td>
						<%= item.title %>
					</td>
					<td>
						<%= item.singer %>
					</td>
					<td>
						<%= item.music %>
					</td>
					<td>
						<%= item.poster %>
					</td>
					<td>
						<a href="/">修改</a>
						<a href="/">删除</a>
					</td>
				</tr>
				<% }) %>
			</table>
		</div>
	</body>
</html>
<!-- 拿取数据格式 -->
